package com.zhida.smartcontrol.common;

public class Api {

//    public static final String BASE_URL = "http://192.168.1.102:8080/zwzm";//测试
    public static final String BASE_URL = "https://www.zdzwzm.com:3000/na";//正式

    // 登录
    public static final String LOGIN = "/sys/login";

    // 退出登录
    public static final String LOGIN_OUT = "/sys/logout";

    // 获取首页项目列表
    public static final String FIND_PROJECT = "/lampSwitch/findByProjectAndKeywords";

    // 获取单个集控器或灯详情
    public static final String GET_LAMP_SWITCH_BY_ID = "/lampSwitch/getLampSwitchById";

    // 添加项目
    public static final String PROJECT_ADD = "/project/add";

    // 删除项目
    public static final String PROJECT_DELETE = "/project/delete";

    // 编辑项目
    public static final String PROJECT_EDIT = "/project/edit";

    // 获取项目列表
    public static final String PROJECT_LIST = "/project/list";

    // 根据项目 ID 查询项目信息接口
    public static final String PROJECT_ID = "/project/byId";

    //  手自动控制，适用于集控、二代开关、NB 单双灯。类型：POST
    public static final String HAND_AUTO_SET = "/command/handAutoSet";

    // 手自动控制，适用于 ZigBee 单灯。类型：POST
    public static final String HAND_AUTO_SET_ZIGBEE = "/command/handAutoSet4ZigBee";

    // 校准时间
    public static final String CORRECTION_TIME = "/command/correctionTime";

    // 通道开关
    public static final String OPEN_CLOSE_SWITCH = "/command/openCloseSwitch";

    // 开关 NB 双灯
    public static final String OPEN_CLOSE_NB_DOUBLE = "/command/openCloseNbDb";

    // 开关plc，ZigBee单灯
    public static final String OPEN_CLOSE_P_Z = "/command/openClosePLCSingleLight";

    // 设置开关控制时间
    public static final String SET_CONTROL_TIMES = "/command/setControlTimes";

    // 设置节日模式
    public static final String SET_HOLIDAY_TIMES = "/command/setHolidayTimes";

    // 根据设备 IMEI 或者设备编码查询设备信息
    public static final String FIND_BY_QR_CODE = "/lampSwitch/getLampSwitchByImeiOrEquipmentCode";
    public static final String FIND_BY_IMEI = "/lampSwitch/getLampSwitchByImei";

    // 修改设备
    public static final String DEVICE_EDIT = "/lampSwitch/edit";

    // 删除设备
    public static final String DEVICE_DELETE = "/lampSwitch/delete";

    // 新增集控或者二代开关设备，类型：POST
    public static final String DEVICE_ADD = "/lampSwitch/add";

    // 单/双灯设备添加，类型：POST
    public static final String ADD_LAMP = "/lampSwitch/addSingle";

    // 获取区段列表
    public static final String GROUP_LIST = "/groups/listByProjectBaseId";

    // 根据区段获取设备列表
    public static final String DEVICE_LIST = "/lampSwitch/listByGroupId";
    // 根据项目和类型获取故障信息列表数据
    public static final String WARNING_LIST = "/project/findAlarmByProjectId";

    // 添加区段
    public static final String GROUP_ADD = "/groups/add";

    // 修改区段
    public static final String GROUP_EDIT = "/groups/edit";

    // 删除区段
    public static final String GROUP_DELETE = "/groups/delete";

    // 根据当前登录用户获取项目以及该项目下的群组列表
    public static final String PROJECT_BASE_GROUPS = "/project/findProjectBaseAndGroups";

    // 根据群组id查询该群组下的所有集控和单灯
    public static final String PROJECT_GROUPID = "/project/findSwitchesByGroupId";

    // 获取用户列表
    public static final String LIST_4_PROJECT = "/sys/user/list4Project";

    // 根据设备 ID 和星期查询通道设置的时间
    public static final String FIND_WAY_DATA = "/passwayRecord/findWayDataBySwitchIdAndWeekday";

    // 根据设备 ID 和节假日类型查询控制时间
    public static final String FIND_WAY_DATA_HOLIDAY = "/passwayRecord/findWayDataBySwitchIdAndControlDayType";

    // 获取开关最新数据
    public static final String GET_LATEST_DATA = "/command/getLatestData";

    public static final String UPLOAD_PIC = "/sys/common/upload";

    public static final String LAMP_SWITCH_LIST_BY_PARENT = "/lampSwitch/getLampSwitchListByParent";

    // NB单双灯调光
    public static final String ADJUST_NB_BRIGHTNESSES = "/command/adjustNbBrightnesses";

    // PLC 和 ZigBee 单灯调光
    public static final String ADJUST_PLC_BRIGHTNESSES = "/command/adjustPLCBrightnesses";

    // ZigBee 单灯设置开关控制时间
    public static final String ZIGBEE_CONTROL_TIMES = "/command/setZigBeeSingleLightControlTimes";

    // NB 单(双)灯设置开关控制时间
    public static final String NB_CONTROL_TIMES = "/command/setNbSingleLightControlTimes";
    // 运行/休眠模式
    public static final String RUNNING_MODEL = "/command/runningModel";
    //退出检修模式
    public static final String SWITCH_REPAIR = "/command/switchRepair";
    // 复位
    public static final String RESET_SWITCH = "/command/resetSwitch";
    //故障处理
    public static final String PROCESSWARN = "/lampSwitch/processWarn";


    public static final String PIC = Api.BASE_URL + "/sys/common/view/";

    public static final String SAVE_LAMP_SWITCH_TEMP = "/lampSwitch/saveLampSwitchTemp";//添加第一次设备
}
